package fr.uniscol.model;

import java.io.Serializable;

public class NotationEleve implements Serializable {

	private Eleve eleve = null;
	
	private String note = null;
	
	private String appreciation = null;
	
	private float coefficient = 1.0f;
	
	private Devoir devoir = null;

	public NotationEleve() {
		super();
	}

	public NotationEleve(Eleve eleve) {
		super();
		this.eleve = eleve;
	}
	
	public String getId(){
		return eleve.getId() + "-" + devoir.getCode();
	}
	
	public void setId(String id){
	}

	public Eleve getEleve() {
		return eleve;
	}

	public void setEleve(Eleve eleve) {
		this.eleve = eleve;
	}

	public String getNote() {
		if(note == null){
			note = "";
		}
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public String getAppreciation() {
		if(appreciation == null){
			appreciation = "";
		}
		return appreciation;
	}

	public void setAppreciation(String appreciation) {
		this.appreciation = appreciation;
	}

	public float getCoefficient() {
		return coefficient;
	}

	public void setCoefficient(float coefficient) {
		this.coefficient = coefficient;
	}

	public Devoir getDevoir() {
		return devoir;
	}

	public void setDevoir(Devoir devoir) {
		this.devoir = devoir;
	}
}
